package com.youpai.platform.vulture.service.handler.vulture;

import com.youpai.platform.common.exceptions.RemoteException;
import com.youpai.platform.vulture.common.entity.AccessMessage;
import com.youpai.platform.vulture.service.channel.VultureChannel;

/**
 * @date: 2022/6/25 21:08
 * @author: Anna
 * @version: 1.0
 * @description: 消息handler
 */
public interface MessageHandler {

    /**
     * 处理操作
     *
     * @param vultureChannel vulture通道
     * @param accessMessage  消息
     * @throws RemoteException 异常
     */
    void handle(VultureChannel vultureChannel, AccessMessage accessMessage) throws RemoteException;
}
